package com.tools.service;

import com.tools.model.Request.listUserRequest;
import com.tools.model.entity.UserEntity;

import java.util.List;

/**
 * @author wangminggen
 */
public interface UserService {
    void save(UserEntity entity);

    UserEntity loginInPhone(String phone, boolean doctor);

    UserEntity findByUserId(String userId);


    UserEntity findByPhone(String userId);


    List<listUserRequest> listAll(boolean isDoctor);
}
